home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / March 96 / resizing windows.1 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.5 KB  |  [TEXT/ttxt]

  1. Subject:     resizing windows
  2. Sent:        3/6/96 12:26 PM
  3. Received:    3/6/96 12:41 PM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. We set the resize flag to false because we want to handle the resizing 
  9. ourself so we can test for the minimum and maximum window size. Your 
  10. FW_CFrame::HandleWindowEvent should still be called. All the ODF samples 
  11. are built this way and you can resize their window. What is the style of 
  12. your window? It should still have the FW_kResizeable flag. How do you 
  13. create your window? You should be doing something like:
  14.  
  15. myPart->GetODPart(ev)->Open(ev, myFrame->GetODFrame(ev));
  16.  
  17. with myFrame being the original frame.
  18.  
  19. Note: We should have some API in ODF to do that.
  20.  
  21. Henri Lamiraux
  22. ODF Team
  23.  
  24. ---------------------------------------------------------------------------
  25. -----
  26.  
  27. Hi,
  28.  
  29. After my part is opened, in response to a menu command (of my own), I 
  30. create
  31. a new frame of my content in a new window. So far so good. The problem
  32. happens when I try to resize this window. When I mouse-down in the resize
  33. box, a window event (kODEvtWindow) never occurs. I looked to the OpenDoc
  34. documentation, and when creating an OD window there is parameter for
  35. specifying the window as resizable. In the ODF window class, it passes 
  36. false
  37. for this parameter. It appears that this might be the problem?
  38.  
  39. What am I doing wrong, and what should I do to fix it?
  40.  
  41. Thanks
  42. Scott Daniels
  43.  
  44.  
  45.